function getYear() {
	return new Date().getFullYear();
}

function getMonth() {
	var month = new Date().getMonth();

	return month < 9 ? "0" + (month + 1) : month + 1;
}

function getDay() {
	var day = new Date().getDate();

	return day < 10 ? "0" + day : day;
}

function getYmd() {
	return getYear() + "年" + getMonth() + "月" + getDay() + "日";
}

function getY_m_d() {
	return getYear() + "-" + getMonth() + "-" + getDay();
}

function getHours() {
	var hours = new Date().getHours();

	return hours < 10 ? "0" + hours : hours;
}

function getMinutes() {
	var minutes = new Date().getMinutes();

	return minutes < 10 ? "0" + minutes : minutes;
}

function getHm() {
	return getHours() + ":" + getMinutes();
}

function getSeconds() {
	var seconds = new Date().getSeconds();

	return seconds < 10 ? "0" + seconds : seconds;
}

function getHms() {
	return getHours() + ":" + getMinutes() + ":"
	getSeconds();
}

function getWeek() {
	var day = new Date().getDay();

	var week = "";
	switch (day) {
	case 0:
		week = "星期日";
		break;
	case 1:
		week = "星期一";
		break;
	case 2:
		week = "星期二";
		break;
	case 3:
		week = "星期三";
		break;
	case 4:
		week = "星期四";
		break;
	case 5:
		week = "星期五";
		break;
	case 6:
		week = "星期六";
		break;
	}

	return week;
}
